#!/usr/bin/python3
# -*- coding: utf-8 -*-
# @author: zzll0909
# @file: 190.py
# @time: 2024/11/22
# @software: PyCharm

class Solution:
    def reverseBits(self, n: int) -> int:
        result = 0
        for i in range(32):
            result <<= 1
            result |= (n & 1)
            n >>= 1
        return result


if __name__ == "__main__":
    solu = Solution()
    result = solu.reverseBits(0b00000010100101000001111010011100)
    print(result)
